import { observable, action, } from 'mobx';

import { HrmCondition } from 'weaver-mobile-page';
import * as Api from '../../api/CommunicationApi';

export default class AddShareStore {
    @observable shareConditionInfo = []
   // @observable hrmConditionRoute = new HrmCondition.Store({ route: '/communication/addShare', id: 'addShare' });

    @action
    getWeaAuthConditions = () => {
        Api.getWeaAuthConditions().then(res => {
            this.shareConditionInfo = res.conditioninfo;    
        });
    }

    @action("添加参与人")
    saveorupdateCoworkShare = (params) => {
        Api.saveorupdateCoworkShare(params).then(res => {
            this.shareConditionInfo = res.conditioninfo;    
        });
    }
}